<?php
/**
 * Signout ~ session destroy service
 *
 * @author  Badrus Said <badrus.said@gmail.com>
 * @secure
 * @singleton
 */
final class vfs_Signout {
    public function GET() {
        session_destroy();
        getService(meta()->API->Response)->redirect(
            (isset($_SERVER["HTTP_REFERER"])) ? $_SERVER["HTTP_REFERER"] : FILE_SEPARATOR
        );
    }
}
?>